﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace iMES.Entity.DomainModels
{


    [Entity(TableCnName = "工艺路线", TableName = "Basicdata_Processroute", DetailTable = new Type[] { typeof(Basicdata_ProcessrouteList) }, DBServer = "SysDbContext")]
    public partial class Basicdata_Processroute : SysEntity
    {


        /// <summary>
        ///工艺路线表主键ID
        /// </summary>
        [Key]
        [Display(Name = "工艺路线表主键ID")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int  ProcessLine_Id { get; set; }

        /// <summary>
        ///工艺路线编号
        /// </summary>
        [Display(Name = "工艺路线编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string? ProcessLineCode { get; set; }

        /// <summary>
        ///工艺路线名称
        /// </summary>
        [Display(Name = "工艺路线名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string? ProcessLineName { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        ///创建人编号
        /// </summary>
        [Display(Name = "创建人编号")]
        [Column(TypeName = "int")]
        public int? CreateID { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string? Creator { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        public string? Modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        ///修改人编号
        /// </summary>
        [Display(Name = "修改人编号")]
        [Column(TypeName = "int")]
        public int? ModifyID { get; set; }

        [Display(Name = "工序列表")]
        [ForeignKey("ProcessLine_Id")]
        public List<Base_ProcessLineList>? Base_ProcessLineList { get; set; }







    }
}
